package tools;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import entitybean.oc_date_pla.EnitityBeanOc_Date_Pla;


public class InterfaceDataPlaList {
	public List<EnitityBeanOc_Date_Pla> ViewOc_News(ResultSet rs)
	{
		
		List<EnitityBeanOc_Date_Pla>list =new ArrayList<EnitityBeanOc_Date_Pla>();
		try {
			Integer i=1;
			while(rs.next())
			{
				
				EnitityBeanOc_Date_Pla viewoc_news=new EnitityBeanOc_Date_Pla();
				viewoc_news.setStation_name(rs.getString("station_name"));
				viewoc_news.setProperty_name(rs.getString("property_name"));
				viewoc_news.setVoyage_name(rs.getString("voyage_name"));
				viewoc_news.setTools_name(rs.getString("tools_name"));
				viewoc_news.setDepth(rs.getString("depth"));
				viewoc_news.setId(Integer.valueOf(rs.getString("ID")));
				viewoc_news.setValue_key(rs.getDouble("value_key"));
				list.add(viewoc_news);
				i=i+1;
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return list;
		
	}
}
